﻿@model PagedList<ArticleModel>
<table class="bordered">
    <thead>
        <tr>
            <th>文章标题</th>
            <th>阅读数</th>
            <th>评论数</th>
            <th>点赞数</th>
            <th>操作</th>
        </tr>
    </thead>
    <tbody>
        @foreach (var item in Model)
        {
            <tr>
                <td><a href="@Url.Action("article/"+item.ID)">@item.Title</a></td>
                <td>@item.ReadCount</td>
                <td>@item.ArticleCommentModels.Count()</td>
                <td>@item.AgreeCount</td>
                <td>
                    <a href="@Url.Action("release/"+item.ID)"  class="red"><i class="icon-edit"></i>编辑</a>&nbsp;
                    <a href="javascript:;" onclick="delArticle(this,@item.ID)" class="red"><i class="icon-remove"></i>删除</a>&nbsp;
                    <a href="javascript:;" onclick="" class="red"><i class="icon-level-up"></i>置顶</a>
                </td>
            </tr>
        }
    </tbody>
</table>